| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | import { compose, createStore, applyMiddleware } from 'redux'; |
||
| 7 | export default function configureStore(initialState) { |
||
| 8 | const store = createStore(rootReducer, initialState, composeEnhancers( |
||
| 9 | applyMiddleware( |
||
| 10 | thunk |
||
| 11 | ) |
||
| 12 | )); |
||
| 13 | |||
| 14 | if (module.hot) { |
||
| 15 | module.hot.accept('../reducers', () => { |
||
| 16 | const nextReducer = require('../reducers'); |
||
| 17 | store.replaceReducer(nextReducer); |
||
| 18 | }); |
||
| 19 | } |
||
| 20 | |||
| 21 | return store; |
||
| 22 | } |
||
| 23 |